#ifndef BS_H
#define BS_H
#include <string.h>
#include <omnetpp.h>
#include <math.h>
#include "ArpeesDef.h"



class Sensor;
class BaseStation: public cSimpleModule {
public:
    int finalRound;
    int currRound;
    int xpos, ypos;
    int numberData;
    int numberDataMax;
    int sensorRange;
    int numberRound;
    int eventId;
    int protocol;
    int numberErrorMessage;
    int numberNode;

    //
    int totalCH;

    //
    double totalLoss;
    double totalDataPacket;
    double numberSuccessPacket2;
    double totalSuccessPacket2;
    //use for test

    virtual void endRound();
    virtual void initialize();
    virtual void handleMessage(cMessage *msg);
    virtual void initBaseStaion();
    virtual double distanceCal(int x1,int y1,int x2,int y2);
};
#endif
